package com.lyf.design.practice.theory.structure.adapter;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class AmericaCharge implements Charge{

    @Override
    public void charge(Device device) throws Exception {
           if(device.getElectronic()!=110){
               System.out.println("cant charge..");
           }
           System.out.println("charging...");
    }

    // ---other opt
}
